﻿using Minotaur.App.Domains.ViewModel;
using Minotaur.App.Modules.SystemControl.ViewModels;
using Minotaur.App.Modules.SystemControl.Views;
using Minotaur.App.Modules.SystemSet.ViewModels;
using System.Windows.Controls;

namespace Minotaur.App.Modules.SystemSet.Views
{
    /// <summary>
    /// Interaction logic for Table
    /// </summary>
    public partial class Table : UserControl
    {
        private TableViewModel viewModel;
        public Table()
        {
            InitializeComponent();
        }

        private void TableManager_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            viewModel = this.DataContext as TableViewModel;
            viewModel.FormDependencyObject = this.FormDockPanel;
            viewModel.Dispatcher=this.Dispatcher;
            viewModel.ListPagination = this.pagination; 
            viewModel.InitData();
        } 
    }
}
